package com.hoshiicloud.goods.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hoshiicloud.goods.entity.category.BrandCategory;

import java.util.List;

/**
 * <p>
 * 品牌类目 服务类
 * </p>
 *
 * @author zhangshuhu
 * @since 2019-06-17
 */
public interface BrandCategoryService extends IService<BrandCategory> {

    BrandCategory getById(Long id);

    boolean save(BrandCategory entity);

    boolean updateById(BrandCategory entity);

    IPage getPage(IPage page, Wrapper queryWrapper, String key);

    boolean deleteById(Long id);

    List<BrandCategory> getByIds(List<Long> ids, String key);

    /**
     * 根据类目id查询品牌id
    */
    List<BrandCategory> getBrandIdsByCategoryId(Long cateId);
}
